#ifndef AUX_PACKAGE_H
#define AUX_PACKAGE_H
#ifdef __cplusplus
extern "C" {
#endif
#include "config.h"
#include "aux_types.h"
#include "aux_errno.h"
#include "aux_messagemanager.h"
#include "aux_thread.h"
#include "aux_socket.h"

EErrNo xIPC_Pkg_FindNextValidPkg(u8 *pbyHeaderBegin,
                                                u32 nByteCnt, u32 *pnOffset);

EErrNo xIPC_Pkg_ChkHeaderIgnoreData(u8 *pbyHeaderBegin, u32 nByteCnt);


EErrNo xIPC_Pkg_GetPkgSize(u8 *pbyHeaderBegin,
                                            u32 nByteCnt, u32 *pnSize);

EErrNo xIPCPackageSkipCurrentMsg(u8 *pbyHeaderBegin,
                                           u32 nByteCnt, u32 *pnOffset);

EErrNo xIPC_Pkg_GetMsgPointer(u8 *pbyHeaderBegin,
                                   u32 nByteCnt, u8 **ppbyData, u32 *pnSize);

EErrNo xIPCPackageGetPackMsgAuto(u8 *pabyData, u32 *pnSize, u8 **ppabyPack);

EErrNo xIPCPackagePutPackMsg(u32 *pabyPack, u32 nSize);

EErrNo xIPCPackageFindMessageHeader(u8 *pbyHeaderBegin,
                                                 u32 nByteCnt, u32 *pnOffset);

#ifdef __cplusplus
}
#endif
#endif
